package com.glorystone.ins.exception;

/**
 * @author liuming
 * @date 2017年11月6日 下午6:37:07
 */
public class ErrorMessage {

	private long timestamp;
	private int code;
	private String data;
	private String message;

	public ErrorMessage() {
	}

	public ErrorMessage(final int code, final String message) {
		this.code = code;
		this.message = message;
		timestamp = System.currentTimeMillis();
	}

	public ErrorMessage(final int code, final String message, final String data) {
		this.code = code;
		this.message = message;
		this.data = data;
		timestamp = System.currentTimeMillis();
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
